package lib.android.clean.reflection.simple

//import android.view.View
//import android.view.WindowManager
//import lib.android.clean.reflection.clazz
//import lib.android.clean.reflection.field

/**
 * <br>createBy Gw
 * <br>createTime: 2021/7/15 15:19
 */

/*
@Suppress("LocalVariableName")
fun test(){
    val windowManager: WindowManager = xxxx

    val WindowManagerImpl = "android.view.WindowManagerImpl".clazz
    val WindowManagerGlobal = "android.view.WindowManagerGlobal".clazz
    val ViewRootImpl = "android.view.ViewRootImpl".clazz

    val mGlobal = windowManager.field("mGlobal", WindowManagerImpl)
    val mRoots = mGlobal?.field("mRoots", WindowManagerGlobal) as List<*>?

    mRoots?.iterator()?.forEach { viewRoot ->
        val mWindowAttributes = viewRoot?.field("mWindowAttributes", ViewRootImpl)
                as WindowManager.LayoutParams
        val mView = viewRoot?.field("mView", ViewRootImpl) as View
    }
}*/
